<template>
	<view class="content">
		{{message}}
		<image @src="photo"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				message: 'aaaa',
				photo: ''
			};
		},
		created() {
			var data = {
				"service": "classic.event.test"
			}
			this.$ajax.post('gateway.do', data).then(res => {
				this.message = res.data.FirstName;
				this.photo = res.data.Photo;
			});
		},
		onLoad() {},
		methods: {}
	};
</script>

<style>
	.content {
		text-align: center;
		height: 400upx;
		margin-top: 200upx;
	}
</style>
